package com.cha.chaApp.babyphysical.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.Period;
import java.time.temporal.ChronoUnit;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class BabyAgeInfoVo {
    /**
     * babyId,主键
     */
    @TableId(type = IdType.AUTO)
    private Long babyId;
    /**
     * 测量时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate measurementTime;
    /**
     * 宝宝月龄或年龄信息（不足12个月显示几个月几天，大于12个月显示几岁几月几天）
     */
    private String ageInfo;
}